
<template>
  <div class="backInfo" @click="toBack" :class="type==0?'leftP':'rightp'">
  	<img :src="type==0?require('@/assets/img/index/back.png'):require('@/assets/img/index/back_w.png')" alt="">
  </div>
</template>

<script>
export default {
  props:["type"],
  data() {
  	return {
  		
  	}
  }, 
  methods:{
	 toBack(){
		this.$router.go(-1); // 返回上一级页面
	 }  
  }
};
</script>

<style lang="less" scoped>
.backInfo{
	padding:0px 0 0 0px;
	img{
		width:25px;
		display:block;
	}
}
.leftP{
	padding-left: 10px;
}
.rightp{
	padding-right: 10px;
}
</style>